package com.zerdoor.service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2015/2/2.
 */
public interface RbacResourcesService {

    /**
     * 查询符合条件的所有资源
     * @param parentId 父类编号
     * @return
     */
    public List<Map<String, Object>> getRbacResources(int parentId);

    /**
     * 添加资源
     * @param map
     * @throws Exception
     */
    public void addRbacResources(Map<String, Object> map) throws Exception;

    /**
     * 编辑资源
     * @param map
     * @throws Exception
     */
    public void updateRbacResources(Map<String, Object> map) throws Exception;

    /**
     * 删除资源
     * @param resourcesId 资源编号
     * @throws Exception
     */
    public void deleteRbacResources(int resourcesId) throws Exception;
}
